/*
 * the codes was writted by taing, but you can copy or moidfy it
 */

package com.taing.autosql.model;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author tianyi
 * @Description autosql的对象，利用jpa进行操作
 * @Date 2023 - 01 - 30
 **/
@Data
@Entity
@Table(name = "auto_sql_t")
public class DataSqlModel {

    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long autoSqlId;

    /**
     * sql文本
     */
    private String sqlContext;

    /**
     * 方法
     */
    private String method;

    /**
     * 创建日期
     */
    private Date creationDate;

    /**
     * 最后更新日期
     */
    private Date lastUpdateDate;

    /**
     * 是否删除
     */
    private String deleteFlag;
}
